package cn.sofwin.day0106;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args){
       Scanner sc = new Scanner(System.in);
        int number,score;
        String birthday;

        System.out.print("请输入会员号（<4位整数>）：");
        number = sc.nextInt();
        if(number < 1000 || number > 9999){
            System.out.println("会员号不足4位");
            return;
        }

        System.out.print("请输入会员生日：");
        birthday = sc.next();
        if(birthday.length() != 5){
            System.out.println("生日格式错误");
            return;
        }

        System.out.print("请输入积分：");
        score = sc.nextInt();
        if(score<0){
            System.out.println("积分为负数");
            return;
        }

            System.out.println("已录入的会员信息是：");
            System.out.println(number + "\t" + birthday + "\t" +score);



    }
}
